home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Dogs / Multimedia Dogs v2.0.iso / mac / Extras / MMDogs 2.0 with Desktop / MIAW.DXR / 00012_Video handlers.ls < prev    next >
Encoding:
Text File  |  1995-10-09  |  620 b   |  25 lines

  1. global gpMiawVideoSprite, gpMiawVideoCastnum
  2.  
  3. on doPlayVideo theFilename, theTitle
  4.   set gpMiawVideoSprite to 4
  5.   set gpMiawVideoCastnum to the number of cast "VideoPlaceholder.mov"
  6.   set the fileName of cast gpMiawVideoCastnum to theFilename
  7.   set the text of cast "VideoTitle" to theTitle
  8.   go("vplay")
  9. end
  10.  
  11. on enterVideo
  12.   puppetSprite(gpMiawVideoSprite, 1)
  13.   set the castNum of sprite gpMiawVideoSprite to gpMiawVideoCastnum
  14.   updateStage()
  15.   set the movieRate of sprite gpMiawVideoSprite to 1
  16. end
  17.  
  18. on handleVideoDone
  19.   set gpCursorState to #waitAuto
  20.   cursor(4)
  21.   tell the stage
  22.     closeVideoMIAW()
  23.   end tell
  24. end
  25.